﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true"
    CodeFile="MendRecodList.aspx.cs" Inherits="Police_SecurityEvaluate_MendRecodList"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" TargetControlID="txtStartDate"
        runat="server">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender2" TargetControlID="txtEndDate"
        runat="server">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender3" TargetControlID="txtFinishSD"
        runat="server">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender4" TargetControlID="txtFinishED"
        runat="server">
    </ajaxToolkit:CalendarExtender>
    <table width="100%" cellpadding="0" cellspacing="0" class="intable">
        <caption>
            <span>查询条件</span>
        </caption>
        <tr>
            <td style="width: 100px;">
                单位：
            </td>
            <td>
                <asp:DropDownList ID="ddlDepartment" runat="server" DataTextField="shortName" DataValueField="DepartmentID"
                    AutoPostBack="True" OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlUnit" runat="server" DataTextField="shortName" DataValueField="DepartmentID">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                上报时间：
            </td>
            <td>
                <asp:TextBox ID="txtStartDate" runat="server" Width="100px"></asp:TextBox>
                至
                <asp:TextBox ID="txtEndDate" runat="server" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                维修完成时间：
            </td>
            <td>
                <asp:TextBox ID="txtFinishSD" runat="server" Width="100px"></asp:TextBox>
                至
                <asp:TextBox ID="txtFinishED" runat="server" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                类型：
            </td>
            <td>
                <asp:CheckBoxList ID="cblFlag" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">车辆损坏</asp:ListItem>
                    <asp:ListItem Value="1">器材损坏</asp:ListItem>
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="lkbQuery" runat="server" OnClick="lkbQuery_Click" Text="查询"></asp:Button>
                <asp:Label runat="server" ID="lblPrompt" CssClass="prompt"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView runat="server" ID="gvMeeting" CellPadding="0" CellSpacing="0" Width="100%"
        CssClass="intable" Caption="<span>维修记录</span>" OnRowDataBound="gvMeeting_RowDataBound"
        OnRowCommand="gvMeeting_RowCommand">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="车辆名称">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblVehicleName"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="类型">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblType"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="器材名称">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblDeviceName"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="上报时间" DataField="MendTime" DataFormatString="{0:yyyy-MM-dd}"
                HtmlEncode="false" />
            <asp:TemplateField HeaderText="维修完成时间">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblFinishTime"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink runat="server" Target="_blank" ID="hplView" Text="查看" NavigateUrl='MendRecordView.aspx?Flag=<%# Eval("flag") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="20" OnPageSizeChange="ListPageContral1_PageSizeChange" />
</asp:Content>
